import request from '@/utils/request';

export function getBankFinancingOrgList(paramInfo) {
    return request({
        url: '/bank-financing/getOrgList.do',
        method: 'post',
        data: paramInfo
    });
}

export function updateFinancingOrgName(orgInfo){
    return request({
        url: '/bank-financing/updateOrgName.do',
        method: 'post',
        data: orgInfo
    })
}

export function deleteFinancingOrg(id){
    return request({
        url: `/bank-financing/deleteOrg.do/${id}`,
        method: 'delete',
    });
}

export function addFinancingOrg(orgInfo){
    return request({
        url: '/bank-financing/addOrg.do',
        method: 'post',
        data: orgInfo
    })
}